package Service;

import Entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AdminService extends IService<Admin> {
    Admin getAdminById ( Integer id );

    List<Admin> getAllAdmin ( );

    Boolean updateAdminInfo ( Admin admin );

    Boolean saveAdmin ( Admin admin );

    Boolean deleteAdminById ( Integer id );

    Boolean modifyOwnInfo ( Admin admin );

    Admin login ( Integer id , String password );
}
